package faultTolerant;

import lombok.extern.slf4j.Slf4j;
import model.RpcResponse;

import java.util.Map;

/**
 * 容错机制：静默处理
 */
@Slf4j
public class FaultSafe implements FaultTolerant{
    public RpcResponse tolerant(Map<String,Object> map, Exception e){
        log.info("重试达到最大失败，转入静默服务处理");
        log.info("静默异常：" + e);
        return new RpcResponse();
    }
}
